from django.contrib import admin
from django.urls import path
from rest_framework_jwt.views import obtain_jwt_token


from apps.users.views import RegisterView
from . import views

urlpatterns = [
    path('authorizations/', obtain_jwt_token),
    path('users/', RegisterView.as_view()),
    # path('spit/{int:id}/updatethumbup/', SpitViewSet.as_view({'put':'updatethumbup'})),
    # path('spit/{int:id}/children/', SpitViewSet.as_view({'get':'children'})),
]

from rest_framework import routers

router = routers.DefaultRouter()
# router.register('spit', SpitViewSet)
# router.register('users', UserViewSet)
urlpatterns += router.urls